<extend name="../Public/base" />
<block name="title">角色列表</block>
<block name="body">
    <div class="text-c">
        <form method="post" action="{:U('index')}">
            <input type="text" class="input-text" style="width:250px" placeholder="输入角色名称" value="{$keyword}" name="keyword">
            <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜素</button>
        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l"><a href="javascript:;" onclick="layer_show('添加管理员','{:U("add")}','800','500')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加角色</a></span>
        <span class="r">共有数据：<strong>{$count}</strong> 条</span>
    </div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-bg">
            <thead>
                <tr class="text-c">
                    <th width="10%">ID</th>
                    <th width="25%">角色名</th>
                    <th width="35%">描述</th>
                    <th width="30%">操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="list" id="info">
                <tr class="text-c">
                    <td>{$info.role_id}</td>
                    <td>{$info.role_name}</td>
                    <td>{$info.remark}</td>
                    <td class="f-14"><eq name='info.role_id' value="1">
                        <a title="不可操作" href="javascript:;" ><i class="Hui-iconfont">&#xe6a6;</i></a>
                        <else/>
                        <a title="角色权限" href="{:U('auth',array('role_id'=>$info['role_id']))}" >
                            角色权限
                        </a>
                        <a title="编辑" href="javascript:;" onclick="layer_show('编辑角色','{:U('edit',array('role_id'=>$info['role_id']))}','800','500')" class="ml-5">
                            <i class="Hui-iconfont">&#xe6df;</i>
                        </a>
                        <a title="删除" href="javascript:;" onclick="del('{$info.role_id}','role_id')" class="ml-5">
                            <i class="Hui-iconfont">&#xe6e2;</i>
                        </a>
                     </eq>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
        </div>
        <div class='paging_simple_numbers'>
           {$page}
        </div>
    </div>
</block>